import { IForm } from '@/base-ui/form'

export const searchFormConfig: IForm = {
  formItems: [
    {
      field: 'email',
      type: 'input',
      label: 'email',
      placeHolder: 'input email',
      rules: []
    },
    {
      field: 'name',
      type: 'input',
      label: 'name',
      placeHolder: 'input name',
      rules: []
    },
    {
      field: 'phone',
      type: 'input',
      label: 'phone',
      placeHolder: 'input phone',
      rules: []
    },
    {
      field: 'isEnabled',
      type: 'select',
      label: 'status',
      placeHolder: 'select the status',
      rules: [],
      options: [
        { label: 'active', value: 'active' },
        { label: 'limited', value: 'limited' }
      ]
    },
    {
      field: 'createTime',
      type: 'datepicker',
      label: 'create_time',
      rules: [],
      otherOption: {
        startPlaceholder: 'start',
        endPlaceholder: 'end',
        type: 'daterange'
      }
    }
  ],
  labelWidth: '100px',
  itemStyle: { padding: '10px 40px' },
  colLayout: { span: 8 }
}
